From ff4623454f3929994ab3911c138f01cf02f723d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Wed, 19 Feb 2020 01:43:23 +0100 Subject: [PATCH] lookingGlass: Handle undefined in objectToString() Fallout from commit 9d941f8202: Template strings handle undefined values just fine, the replacement does not. Fix that. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1020 --- js/ui/lookingGlass.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index d101591ef..54e3e4858 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -244,7 +244,7 @@ function objectToString(o) { // special case this since the default is way, way too verbose return ''; } else { - return o.toString(); + return o !== undefined ? o.toString() : 'undefined'; } } -- 2.39.5